//
// Created by Jisam on 01/10/2024 6:57 PM.
// Solution of  a
#include <bits/stdc++.h>

#define  int long long
#define  endl "\n"
using namespace std;
const int p = 988444333;


signed main() {
    cin.tie(nullptr)->sync_with_stdio(false);

    int a ,b ,h ,k;
    cin >> a >> b >> h >> k;
    cout << ((a + k)* ( b + k) * (h + k) ) % p;
    return 0;
}